package com.relytosoft.mizar.media.system.api.pojo.dto;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * VidAlarmTypeDto
 *
 * @Author SunLi
 * @Date: 2022/4/25 14:27
 * @Version 1.0
 */
public class VidAlarmTypeDto  implements Serializable {
    private static final long serialVersionUID = -5882281705830806452L;
    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    /**
     * 告警类型类别
     */
    @ApiModelProperty(value = "告警类型类别", required = true)
    @NotNull(message = "告警类型类别不能为空")
    private Integer alarmCategory;

    /**
     * 告警类型名称
     */
    @ApiModelProperty(value = "告警类型名称", required = true)
    @NotBlank(message = "告警类型名称不能为空")
    private String name;

    /**
     * 告警等级
     */
    @ApiModelProperty(value = "告警等级")
    private Integer alarmLevel;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAlarmCategory() {
        return alarmCategory;
    }

    public void setAlarmCategory(Integer alarmCategory) {
        this.alarmCategory = alarmCategory;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAlarmLevel() {
        return alarmLevel;
    }

    public void setAlarmLevel(Integer alarmLevel) {
        this.alarmLevel = alarmLevel;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "VidAlarmTypeDto{" +
                "id=" + id +
                ", alarmCategory=" + alarmCategory +
                ", name='" + name + '\'' +
                ", alarmLevel=" + alarmLevel +
                ", remark='" + remark + '\'' +
                '}';
    }
}
